<div class="divColorbox">
    <div class="divColorbox_Header">
        <span><i class="fa fa-star"></i><span>公会信息</span></span>
        <a class="Refresh"></a><a class="Close"></a>
    </div>
    <div class="divColorbox_Body row">
        <ul id="MenuTabs" class="nav nav-tabs">
            <li><a data-toggle="tab" href="#MenuTabs_Base">基本信息</a></li>
            <li><a data-toggle="tab" href="#MenuTabs_Anchor" data-permission-code="{User}[Anchor](List)">公会艺人</a></li>
            <li><a data-toggle="tab" href="#MenuTabs_Operation" data-permission-code="{Base}[Log](Family-Operation-List)">操作日志</a></li>
        </ul>
        <div class="tab-content">
            <div id="MenuTabs_Base" class="tab-pane">
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">公会ID</span>
                            <input id="Family_ID" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">公会名</span>
                            <input id="Family_Name" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">公会长帐号</span>
                            <input id="User_ID" type="text" class="form-control" value="无" readonly/>
                            <span class="input-group-btn hidden" data-permission-code="{User}[Base](Info)">
                                <a id="User_ID_Info" class="btn btn-sm"><i class="fa fa-search"></i></a>
                            </span>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">联系人</span>
                            <input id="ContactName" type="text" class="form-control" readonly/>
                        </div>
                    </div>

                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">当前金豆</span>
                            <input id="Beans" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">总计金豆</span>
                            <input id="Beans_Total" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="input-group">
                            <span class="input-group-addon">实名证件</span>
                            <input id="IDCard" type="text" class="form-control" readonly/>
                            <span class="input-group-addon" data-rel="tooltip" data-placement="left">
                                <i id="IDCard_Status" class="fa"></i>
                            </span>
                            <span class="input-group-btn hidden" data-permission-code="{User}[Family](Info-IDCard)">
                                <a id="IDCard_A" class="btn btn-sm btn-info" target="_blank">正面</a>
                                <a id="IDCard_B" class="btn btn-sm" target="_blank">背面</a>
                            </span>
                        </div>
                    </div>
                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">家族主播数量</span>
                            <input id="Anchor_Num" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">联系人电话</span>
                            <input id="Phone" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">家族邮箱</span>
                            <input id="Email" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">QQ号码</span>
                            <input id="QQ" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">开户银行</span>
                            <input id="Account_BankName" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">开户银行全称</span>
                            <input id="Account_BankFullName" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">开户人姓名</span>
                            <input id="Account_RealName" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">开户帐号</span>
                            <input id="Account_CardNo" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">开户行所在省</span>
                            <input id="Account_Province" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">开户行所在城市</span>
                            <input id="Account_City" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">结算方式</span>
                            <input id="Settlement" type="text" class="form-control" data-rel="tooltip" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">公会状态</span>
                            <input id="Status_Name" type="text" class="form-control" readonly/>
                            <span class="input-group-addon">
                                <i id="Status" class="fa"></i>
                            </span>
                        </div>
                    </div>
                </div>
                <div class="space-6"></div>
                <div class="row">
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">审核公会管理员</span>
                            <input id="Approve_Admin_ID" type="text" class="form-control" value="无" readonly/>
                            <span class="input-group-btn hidden" data-permission-code="{User}[Admin](Info)">
                                <a id="Approve_Admin_ID_Info" class="btn btn-sm"><i class="fa fa-search"></i></a>
                            </span>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">审核公会申请时间</span>
                            <input id="Approve_Date" type="text" class="form-control" value="无" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">创建日期</span>
                            <input id="Create_Date" type="text" class="form-control" value="无" readonly/>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="input-group">
                            <span class="input-group-addon">创建IP</span>
                            <input id="Create_IP" type="text" class="form-control" readonly/>
                        </div>
                    </div>
                </div>
            </div>
            <div id="MenuTabs_Anchor" class="tab-pane">
                <table id="dtpAnchor" class="dataTable">
                    <tfoot>
                    <tr>
                        <td colspan="2">本页合计：</td>
                        <td>
                            <span name="Coin" class="tooltip-"/>
                        </td>
                        <td>
                            <span name="Beans" class="tooltip-"/>
                        </td>
                        <td colspan="8"></td>
                    </tr>
                    </tfoot>
                </table>
                <div id="dtpAnchor_filter" class="dataTables_filter">
                        <div>
                            <select id="dtpAnchor_F_SType" class="selectpicker" data-style="btn btn-info btn-sm" data-width="90px">
                                <option value="">模糊查询</option>
                                <option data-divider="true"></option>
                                <option value="User_ID">用户ID</option>
                                <option value="NickName">用户昵称</option>
                                <option value="RealName">真实姓名</option>
                                <option value="Family_ID">公会ID</option>
                                <option value="Email">Email</option>
                                <option value="Phone">手机号</option>
                                <option value="QQ">QQ号</option>
                            </select>
                            <input id="dtpAnchor_F_SValue" class="fvalue" type="text"/>
                            <select id="dtpAnchor_F_DateType">
                                <option value="Create_Date">注册时间</option>
                                <option value="Rating_Date">评级时间</option>
                                <option value="Live_StartTime">最近直播时间</option>
                                <option value="Integral_Date">最近罚分时间</option>
                                <option value="Approve_Date">审核艺人时间</option>
                                <option value="Cover_Date">审核封面时间</option>
                                <option value="ProtectDue_Date">保护到期时间</option>
                                <option value="Live_Stream_LastDate">直播流更新时间</option>
                                <option value="Live_FirstDate">第一次开播时间</option>
                            </select>
                            <input id="dtpAnchor_F_StartDate" type="text" style="width: 76px;" placeholder="开始时间">
                            <label>-</label>
                            <input id="dtpAnchor_F_EndDate" type="text" style="width: 76px;" placeholder="结束时间">
                            <select id="dtpAnchor_F_SelectDate"></select>
                            <label>状态：</label>
                            <select id="dtpAnchor_F_Status">
                                <option value="-1" selected="selected">所有</option>
                                <option value="0">正常</option>
                                <option value="1">锁定</option>
                                <option value="2">申请</option>
                                <option value="3">拒绝</option>
                            </select>
                            <a id="dtpAnchor_F_Advanced"></a>
                            <button id="dtpAnchor_F_Btn"></button>
                        </div>
                        <div>
                            <label>性别：</label>
                            <select id="dtpAnchor_F_Sex">
                                <option value="-1">所有</option>
                                <option value="1">男</option>
                                <option value="2">女</option>
                            </select>
                            <label>直播模式：</label>
                            <select id="dtpAnchor_F_LiveMode">
                                <option value="-1">所有</option>
                                <option value="0">PC模式</option>
                                <option value="11">手机竖屏</option>
                                <option value="12">手机横屏</option>
                            </select>
                            <label><input id="dtpAnchor_F_Live" type="checkbox"/>&nbsp;是否直播中</label>
                            <label><input id="dtpAnchor_F_IsWeekStar" type="checkbox"/>&nbsp;上周周星</label>
                            <label><input id="dtpAnchor_F_IsRecommend" type="checkbox"/>&nbsp;推荐</label>
                        </div>
                </div>
            </div>
            <div id="MenuTabs_Operation" class="tab-pane">
            </div>
        </div>
    </div>
    <div class="divColorbox_Footer">
        <div id="divPaginate_Anchor" class="Paginate" MenuTabs="#MenuTabs_Anchor"></div>
        <div id="divPaginate_Operation" class="Paginate" MenuTabs="#MenuTabs_Operation"></div>
        <button type="button" id="btnEdit" class="btn btn-info" MenuTabs="#MenuTabs_Base" RightCode="{User}[Family](Edit)">
            <i class="fa fa-pencil"></i> 修改资料
        </button>
        <button type="button" id="btnUndo"></button>
    </div>
</div>
<script src="<%- Virtual_Path.Static %>jquery.plugin/dataTables/jquery.dataTables.min.js"></script>
<script src="<%- Virtual_Path.Static %>jquery.plugin/dataTables/jquery.dataTables.bootstrap.min.js"></script>
<script>
    $(function () {
        //region 判断flag
        if (_PageData.flag !== 0) {
            $.KOC.Tips.Open('Error', _PageData.flag, {
                Timeout: 1000,
                onClose: function () {
                    parent.$.colorbox.close();
                }
            });
            return;
        }
        //endregion
        //region 时间输入框插件
        $('#dtpAnchor_F_StartDate, #dtpAnchor_F_EndDate').datetimepicker({
            language: 'zh-CN',
            format: 'yyyy-mm-dd',
            minView: 2,
            autoclose: true
        });
        //endregion
        //region 绑定日期选择框
        $.KOC.Date.Select.Bind({
            eSelect: $('#dtpAnchor_F_SelectDate'),
            eBegin: $('#dtpAnchor_F_StartDate'),
            eEnd: $('#dtpAnchor_F_EndDate')
        });
        //endregion
        //region 页面数据绑定
        $('#Family_ID').val(_PageData.Family_Info.Family_ID);
        $('#Family_Name').val(_PageData.Family_Info.Family_Name);
        $('#Account_BankName').val(_PageData.Family_Info.Account_BankName);
        $('#Account_BankFullName').val(_PageData.Family_Info.Account_BankFullName);
        $('#Account_CardNo').val(_PageData.Family_Info.Account_CardNo);
        $('#Account_City').val(_PageData.Family_Info.Account_City);
        $('#Account_Province').val(_PageData.Family_Info.Account_Province);
        $('#Account_RealName').val(_PageData.Family_Info.Account_RealName);
        $('#Beans').val(_PageData.Family_Info.Beans);
        $('#Beans_Total').val(_PageData.Family_Info.Beans_Total);
        $('#Anchor_Num').val(_PageData.Family_Info.Anchor_Num);
        $('#ContactName').val(_PageData.Family_Info.ContactName);
        $('#IDCard').val(_PageData.Family_Info.IDCard);
        $('#Phone').val(_PageData.Family_Info.Phone);
        $('#Email').val(_PageData.Family_Info.Email);
        $('#QQ').val(_PageData.Family_Info.QQ);
        $('#Create_IP').val(_PageData.Family_Info.Create_IP);

        if (_PageData.Family_Info.User_ID > 0) {
            $('#User_ID').val(_PageData.Family_Info.User_ID);
            $('#User_ID_Info').attr('data-openwindow', ':UserInfo:' + _PageData.Family_Info.User_ID).parent().removeClass('hidden');
        }
        if (_PageData.Family_Info.Approve_Admin_ID > 0) {
            $('#Approve_Admin_ID').val(_PageData.Family_Info.Approve_RealName);
            $('#Approve_Admin_ID_Info').attr('data-openwindow', ':UserAdminInfo:' + _PageData.Family_Info.Approve_Admin_ID).parent().removeClass('hidden');
        }
        $('#Approve_Date').val(moment(_PageData.Family_Info.Approve_Date).isValid() ? moment(_PageData.Family_Info.Approve_Date).format('YYYY/MM/DD HH:mm:ss') : "无");
        $('#Create_Date').val(moment(_PageData.Family_Info.Create_Date).isValid() ? moment(_PageData.Family_Info.Create_Date).format('YYYY/MM/DD HH:mm:ss') : "无");
        switch (_PageData.Family_Info.Settlement) {
            case 1:
                $('#Settlement').val('默认').css('color', 'green');
                break;
            case 2:
                $('#Settlement').val('对公').css('color', 'red');
                break;
            default:
                $('#Settlement').val('未知');
                break;
        }
        switch (_PageData.Family_Info.Status) {
            case 0:
                $('#Status_Name').val('正常');
                $('#Status').addClass('fa-check green');
                break;
            case 1:
                $('#Status_Name').val('锁定');
                $('#Status').addClass('fa-lock red');
                break;
            case 2:
                $('#Status_Name').val('申请');
                $('#Status').addClass('fa-hourglass-end yellow');
                break;
            case 3:
                $('#Status_Name').val('拒绝');
                $('#Status').addClass('fa-times grey');
                break;
            default:
                $('#Status_Name').val('未知');
                $('#Status').addClass('fa-question');
                break;
        }
        switch (_PageData.Family_Info.IDCard_Status) {
            case 0:
                $('#IDCard_Status').addClass('fa-check green').parent().attr('data-origin-title', '实名通过：时间XXXX');
                break;
            case 1:
                $('#IDCard_Status').addClass('fa-clock-o').parent().attr('data-origin-title', '等待实名审核');
                break;
            case 2:
                $('#IDCard_Status').addClass('fa-ban red').parent().attr('data-origin-title', '实名审核驳回');
                break;
            case -1:
                $('#IDCard_Status').addClass('fa-times').parent().attr('data-origin-title', '未提交实名信息');
                break;
            default:
                $('#IDCard_Status').addClass('fa-question').parent().attr('data-origin-title', '未知状态');
                break;
        }
        if (_.includes([0, 1, 2], _PageData.Family_Info.IDCard_Status)) {
            $('#IDCard_A').attr('href', $.Common.ImageBind.UserIDCard.fnURL(_PageData.Family_Info.User_ID, "a")).parent().removeClass('hidden');
            $('#IDCard_B').attr('href', $.Common.ImageBind.UserIDCard.fnURL(_PageData.Family_Info.User_ID, "b"));
        }
        //endregion
        //region dtpList
        $("#dtpAnchor").dataTable({
            'aoColumns': [
                {
                    'sWidth': '75px', 'data': 'User_ID', 'sName': 'User_ID', 'sTitle': 'ID', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).html($('<a/>').attr('data-openwindow', ':UserAnchorInfo:' + cellData).text(cellData));
                    }
                },
                {
                    'data': 'NickName', 'sName': 'EXP', 'sTitle': '昵称', 'bSortable': false,
                    'createdCell': function (td, cellData, rowData) {
                        $(td).html('<span class="Level_Anchor_' + rowData.Anchor_Level + '"></span>' + cellData);
                    }
                },
                {
                    'sWidth': '8%', 'data': 'Coin', 'sName': 'Coin', 'sTitle': '金币', 'sClass': 'center t-right',
                    'createdCell': function (td, cellData) {
                        if (cellData > 0) {
                            $(td).html('<span class="tooltip-" data-rel="tooltip" data-original-title="帐户金币价值：' + $.KOC.String.ToCurrencyPositiveStr(cellData / 1000) + '">' + cellData + '</span>');
                        }
                    }
                },
                {
                    'sWidth': '9%', 'data': 'Beans', 'sName': 'Beans', 'sTitle': '金豆', 'sClass': 'center t-right',
                    'createdCell': function (td, cellData) {
                        if (cellData > 0) {
                            $(td).html('<span class="tooltip-" data-rel="tooltip" data-original-title="帐户金豆价值：' + $.KOC.String.ToCurrencyPositiveStr(cellData / 1000) + '">' + cellData + '</span>');
                        }
                    }
                },
                {
                    'sWidth': '55px', 'data': 'Live', 'sName': 'Live', 'sTitle': '直播', 'sClass': 'center',
                    'createdCell': function (td, cellData, rowData) {
                        switch (cellData) {
                            case 0:
                                $(td).html('<i class="fa fa-stop-circle bigger-120" data-rel="tooltip" data-original-title="未直播" />');
                                break;
                            case 1:
                                switch (rowData.Live_Mode) {
                                    case 0:
                                        $(td).html('<i class="fa fa-desktop bigger-120" data-rel="tooltip" data-original-title="PC端直播中" />');
                                        break;
                                    case 11:
                                        $(td).html('<i class="fa fa-tablet bigger-120" data-rel="tooltip" data-original-title="手机竖屏直播中" />');
                                        break;
                                    case 12:
                                        $(td).html('<i class="fa fa-laptop bigger-120" data-rel="tooltip" data-original-title="手机横屏直播中" />');
                                        break;
                                    default:
                                        $(td).html('<i class="fa fa-question bigger-120" data-rel="tooltip" data-original-title="未知" />');
                                        break;
                                }
                                break;
                            default:
                                $(td).html('<i class="fa fa-question bigger-120" data-rel="tooltip" data-original-title="未知" />');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '110px', 'data': 'Live_Order_No', 'sName': 'Live_Order_No', 'sTitle': '直播单据', 'sClass': 'center t-right',
                    'createdCell': function (td, cellData) {
                        $(td).html($('<a/>').attr('data-openwindow', cellData).text(cellData));
                    }
                },
                {
                    'sWidth': '80px', 'data': 'IsWeekStar', 'sName': 'IsWeekStar', 'sTitle': '上周周星', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case 0:
                                $(td).html('<span class="badge badge-light"></span>');
                                break;
                            case 1:
                                $(td).html('<span class="badge badge-success">是</span>');
                                break;
                            default:
                                $(td).html('<span class="badge badge-default">未知</span>');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '60px', 'data': 'Rating', 'sName': 'Rating', 'sTitle': '评级', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case -1:
                                $(td).html('<span class="badge badge-light">未评</span>');
                                break;
                            case 6:
                                $(td).html('<span class="badge badge-success">无评</span>');
                                break;
                            case 7:
                                $(td).html('<span class="badge badge-primary">C级</span>');
                                break;
                            case 8:
                                $(td).html('<span class="badge badge-purple">B级</span>');
                                break;
                            case 9:
                                $(td).html('<span class="badge badge-warning">A级</span>');
                                break;
                            case 10:
                                $(td).html('<span class="badge badge-danger">S级</span>');
                                break;
                            default:
                                $(td).html('<span class="badge badge-default">未知</span>');
                                break;
                        }
                    }
                },
                {
                    'sWidth': '110px', 'data': 'Rating_Date', 'sName': 'Rating_Date', 'sTitle': '最近评级', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).text(moment(cellData).isValid() ? moment(cellData).format('YY/MM/DD HH:mm') : '');
                    }
                },
                {
                    'sWidth': '80px', 'data': 'Live_StartTime', 'sName': 'Live_StartTime', 'sTitle': '最近直播', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).text(cellData ? moment(cellData).fromNow() : '');
                    }
                },
                {
                    'sWidth': '110px', 'data': 'Create_Date', 'sName': 'User_ID', 'sTitle': '创建日期', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        $(td).text(moment(cellData).isValid() ? moment(cellData).format('YY/MM/DD HH:mm') : '');
                    }
                },
                {
                    'sWidth': '65px', 'data': 'Status', 'sName': 'Status', 'sTitle': '状态', 'sClass': 'center',
                    'createdCell': function (td, cellData) {
                        switch (cellData) {
                            case 0:
                                $(td).html('<span class="label label-success">正常</span>');
                                break;
                            case 1:
                                $(td).html('<span class="label label-danger">锁定</span>');
                                break;
                            case 2:
                                $(td).html('<span class="label label-warning">申请</span>');
                                break;
                            case 3:
                                $(td).html('<span class="label label-grey">拒绝</span>');
                                break;
                            default:
                                $(td).html('<span class="label label-default">未知</span>');
                                break;
                        }
                    }
                }
            ],
            'aaSorting': [0, 'desc'],
            'sAjaxSource': '/ajax/user.page.useranchor',
            'fnServerParams': function (aoData) {
                if (!this.arrPageFilter) {
                    this.arrPageFilter = {
                        F_FamilyID: _PageData.Family_ID,
                        F_DateType: $(this.selector + '_F_DateType').val(),
                        F_StartDate: $(this.selector + '_F_StartDate').val(),
                        F_EndDate: $(this.selector + '_F_EndDate').val(),
                        F_Sex: $(this.selector + '_F_Sex').val(),
                        F_LiveMode: $(this.selector + '_F_LiveMode').val(),
                        F_IsWeekStar: $(this.selector + '_F_IsWeekStar').is(':checked') ? 1 : -1,
                        F_IsRecommend: $(this.selector + '_F_IsRecommend').is(':checked') ? 1 : -1,
                        F_Live: $(this.selector + '_F_Live').is(':checked') ? 1 : -1,
                        F_Status: $(this.selector + '_F_Status').val()
                    };
                } else {
                    $(this.selector + '_F_DateType').val(this.arrPageFilter.F_DateType);
                    $(this.selector + '_F_StartDate').val(this.arrPageFilter.F_StartDate);
                    $(this.selector + '_F_EndDate').val(this.arrPageFilter.F_EndDate);
                    $(this.selector + '_F_Sex').val(this.arrPageFilter.F_Sex);
                    $(this.selector + '_F_LiveMode').val(this.arrPageFilter.F_LiveMode);
                    $(this.selector + '_F_IsWeekStar').val(this.arrPageFilter.F_IsWeekStar == 1);
                    $(this.selector + '_F_IsRecommend').val(this.arrPageFilter.F_IsRecommend == 1);
                    $(this.selector + '_F_Live').val(this.arrPageFilter.F_Live == 1);
                    $(this.selector + '_F_IsFamily').val(this.arrPageFilter.F_IsFamily == 1);
                    $(this.selector + '_F_Status').val(this.arrPageFilter.F_Status);
                }
                this.ofnServerParams(aoData);
            },
            'fnFooterCallback': function (nFoot, aData) {
                var _FooterData = {
                    Coin: 0,
                    Beans: 0
                };
                _.forEach(aData, function (ThisValue) {
                    _FooterData.Coin += ThisValue.Coin;
                    _FooterData.Beans += ThisValue.Beans;
                });
                $(nFoot).find('[name="Coin"]').attr({
                    'data-rel': 'tooltip',
                    'data-original-title': '金币价值总计：' + $.KOC.String.ToCurrencyPositiveStr(_FooterData.Coin / 1000)
                }).text(_FooterData.Coin);
                $(nFoot).find('[name="Beans"]').attr({
                    'data-rel': 'tooltip',
                    'data-original-title': '金豆价值总计：' + $.KOC.String.ToCurrencyPositiveStr(_FooterData.Beans / 1000)
                }).text(_FooterData.Beans);
            },
            'fnDrawCallback': function () {
                $.CommonAdmin.Permission.CheckElement(this);
                $.Common.Bootstrap.Tooltip(this);
                this.ofnDrawCallback();
            }
        });
        //endregion
    });
</script>